package com.banciyuan.bcywebview.biz.share;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import com.banciyuan.bcywebview.R;

/**
 * Created by hy on 2015/5/5.
 */
public class JumpDialog extends Dialog {
    public JumpDialog(Context context) {
        super(context);
    }

    public JumpDialog(Context context, int theme) {
        super(context, theme);
    }

    protected JumpDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
    }

    public static class Builder {
        private Context context;

        public Builder(Context context) {
            this.context = context;
        }

        public Builder setTitle(String title) {
            return this;
        }

        public JumpDialog create() {
            LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            final JumpDialog mydialog = new JumpDialog(context, R.style.PcHeadDialog);
            View layout = inflater.inflate(R.layout.jump_dialog, null);

            mydialog.setContentView(layout);
            return mydialog;
        }
    }
}
